clean_cmd = find . -name "*~" -or -name "\#*\#" -or -name "ChangeLog*" -or -name "*.bak*"

clean :
	@$(clean_cmd)
	@echo "Press return to delete"
	@read foo
	@$(clean_cmd) | xargs rm -f

.PHONY : ChangeLog hack todo

ChangeLog : 
	@cvs2cl.pl -S

hack : 
	@find . -not -name "*~" -not -name "TAGS" -not -name "ChangeLog" -not -path "*CVS*" | xargs grep HACK | grep -v NOGREP

todo : 
	@find . | xargs grep TODO

build : 
	@~/viewmycurrency_development/vmc_build_files/build.pl TEST

# The magic perl I used to add the license file. Note the close ARGV to reset $. line number
#perl -pi -e ' BEGIN {$LICENSE=`cat ../../../license.txt`;} if ($.==1 && !/LICENSE/) {print "$LICENSE\n"} close ARGV if eof;' *.js
